<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //includes 判断某个字符是否在字符串里

        //replace 
        var str = "@$@!!@SAFAFDGsadfsgsgdsd"
        var res = str.replace(/\d+/g,function(arg){
            console.log(arg);
            return '*'.repeat(arg.length)
        })
    </script>
</body>
</html>